home *** CD-ROM | disk | FTP | other *** search
- Path: airdmhor.gen.nz!not-for-mail
- From: gumboot@airdmhor.gen.nz (Simon Hosie)
- Newsgroups: comp.lang.c
- Subject: Re: How do you reset the computer using C on a PC ?
- Date: 20 Mar 1996 07:27:30 +1200
- Organization: Airdmhor : a couple of BBS's, a bunch of people, and a cat.
- Distribution: world
- Message-ID: <4in1r2$oj2@airdmhor.gen.nz>
- References: <31473FD4.48AA@ccis.com> <Pine.A32.3.91.960313183048.180818A-100000@red.weeg.uiowa.edu> <827181506snz@dfdesign.demon.co.uk>
- NNTP-Posting-Host: airdmhor.gen.nz
- X-Newsreader: TIN [version 1.2 PL2]
-
- > In article <Pine.A32.3.91.960313183048.180818A-100000@red.weeg.uiowa.edu>
- > robinson@blue.weeg.uiowa.edu "The Amorphous Mass" writes:
-
- > > On Wed, 13 Mar 1996, Derek Lund wrote:
- > >
- > > > Help?
- > >
- > > int main(void)
- > > {
- > > printf("press ctrl-alt-del.");
- > > return 0;
- > > }
-
- Dominic Feeley:
- > As printf() is a variadic function, shouldn't you #include <stdio.h>
- > as well ?
-
- It might also be a good idea to send a newline character, otherwise it
- might get overwritten by the system prompt when it returns.
-